'use strict';
	angular.module('accounting.sheetCashflowShow', [])

	.controller('sheetCashflowShowCtrl'
			,['$rootScope', '$scope', 'BizData'
	        , f])//控制器结束
	function f($rootScope,$scope, BizData
	          ) {
		
  		var Model = this;
   		
  		Model.refresh = function(){
  			Model.dataMaster.refreshData();
  		};
  		
   		var options = {};
		options.container = Model;
		options.concept = 'SheetBalance';
		options.name = 'dataMaster';
		options.url = $rootScope.path;
		options.httpUrl = $rootScope.getServiceName();
   		options.creater = '';
   		options.reader = '/accounting/sheetCashflow/show/query';
   		options.writer = '';
   		options.deleter = '';
   		options.idColumnDefine = "fID";
   		options.idColumnName = "fID";
   		options.isTree = true;
   		options.parentRelation = 'fParent';
   		options.nodeKindRelation = 'nodeKind';
   		options.nodeLevelRelation = 'nodeLevel';
   		options.nodeSortRelation = "sortNo";
//   	options.rootFilter = 'AccountCaption.fParent is null';
   		options.pathRelation = 'sheetFullID';
   		options.directDeleteMode = false;
   		options.limit = -1;
   		options.orderBy = 'sortNo ASC';
   		
   		Model.dataMaster = new BizData(options);
   		
   		Model.dataMaster.filter = "SheetBalance.billType='XJLL'";

  		Model.dataMaster.refreshData();
		
	    return Model;

	}	
	
